import { createApp } from 'vue'
import App from './App.vue'
import store from '@/store/index.js'
import router from '@/router'
import { request } from '@/utils/request.js'
import '@/utils/rem.js'
// import animejs from 'animejs'
import { Toast, Dialog } from 'vant'
import 'vant/es/dialog/style'
import 'vant/es/toast/style'
import jsBridge from '@/utils/jsBridge.js'
import '@/assets/style/base.less'
// 引入国际化
import { i18n } from './lang/index.js'

const app = createApp(App)
app.use(store).use(router).use(i18n).mount('#app')
app.config.globalProperties.$request = request
app.config.globalProperties.$jsBridge = jsBridge

app.config.globalProperties.$Toast = Toast
app.config.globalProperties.$Dialog = Dialog
